<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
<%
    String path = request.getContextPath();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:c="http://java.sun.com/jsp/jstl/core">
    <head>
		<title>中国科学院行政管理局后台管理系统</title>
		<script language="JavaScript" src="<%=path%>/js/jquery-1.3.1.min.js" type="text/JavaScript" charset="utf-8"></script>
		<script language="JavaScript" src="userLogin.js" type="text/JavaScript" charset="utf-8"></script>
		<link rel="stylesheet" href="<%=path%>/css/login.css" type="text/css" charset="utf-8"></link>
	</head>
	<body onload="init()">
		<div class="top1"> <img src="<%=path%>/images/cdb/logo.jpg" /> </div>
		<div class="login">
		    <f:view>
			  	   <div class="loginArea">
				   <h:form id="loginForm" onsubmit="return verifySumbit();">
				      用户名：<br />
				        <label class="yhm">
				        	<h:inputText id="userID" value="#{loginBean.userID}" size="15" 
				        	maxlength="10" style="margin-top:2px" title="请输入用户名"></h:inputText>
						</label>
				      密码：<br />
				        <label class="mm">
				        	<h:inputSecret id="password" value="#{loginBean.password}"
							size="17" maxlength="30" style="margin-top:2px" title="请输入密码"></h:inputSecret>
						</label>
				        <h:commandButton action="#{loginBean.UserLoginValidate}"
							value="登  录" id="btnLogin" styleClass="denglu"></h:commandButton>
				   </h:form>
				   </div>
				  <div class="copy1">©copyright 2013　国家开发银行</div>
			</f:view>
		</div>
	</body>
</html>
<script>
function init(){
	document.getElementById('loginForm:userID').focus();
}
</script>

